<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="css/public.css" media="all">
		<script type="text/javascript" src="layui/layui.js"></script>
		<script type="text/javascript" src="layui/css/layui.css"></script>
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/public.js"></script>
		<script type="text/javascript" src="js/paging.js"></script>	
		<script type="text/javascript" src="js/jquery.media.js"></script>  
		<title>政策文件</title>
	</head>
	<body onload="pageStart(9)">
		<!--发布start-->
		<div style="display: none;" id="addDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content" style="height: 25rem;width: 37.5rem;">
			<form id="uploadForm" enctype="multipart/form-data">
				<div class="popup-top">
					<label class="popup-add-title">发布文件：</label>
					<img onclick="policyAddClose();" src="img/close_icon.png"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt" style="letter-spacing: 6px;">标题：</label>
					<input id="theme" type="text" class="popup-input" placeholder="请输入标题" style="width: 75%;"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">上传者：</label>
					<input id="upload" type="text" class="popup-input" placeholder="请输入上传者" style="width: 27%;"/>
					<label class="popup-txt" style="letter-spacing: 6px;">权重：</label>
					<input id="weight" type="number" class="popup-input" placeholder="请输入权重" style="width: 27%;"/>
				</div>
				<div class="popup-item">
					<label class="popup-txt">上传文档：</label>
					<div class="policy-download">
						<label for="uploadFile"><img src="img/add_icon.png" /></label></br>
						<input id="uploadFile" type="file" accept="application/pdf" style="display: none;" onchange="fileChange(1,this);"/>
						<label>请上传pdf格式</label>
					</div>
					<div id="pdfPreview" class="policy-download-check" style="display: none;" onclick="previewPdf();">
						<img src="img/pdf_icon.png" />
						<!-- <label>预览</label> -->
					</div>
				</div>
				<div class="popup-item" style="text-align: center;">
					<center>
					<button type="button" class="saveBtn" onclick="policyAddSave();">保存</button>
					<button class="cancelBtn" onclick="policyAddClose();" >取消</button>
					</center>
				</div>
				</form>
			</div>
		</div>
		<!--发布end-->
		
		<!--编辑start-->
		<div style="display: none;" id="editDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content" style="height: 25rem;width: 37.5rem;">
				<form id="uploadForm" enctype="multipart/form-data">
					<div class="popup-top">
						<label class="popup-add-title">编辑文件：</label>
						<img onclick="editClose();" src="img/close_icon.png"/>
					</div>
					<div class="popup-item">
						<label class="popup-txt" style="letter-spacing: 6px;">标题：</label>
						<input id="themeEdit" type="text" class="popup-input" placeholder="请输入标题" style="width: 75%;"/>
						<input id="policyIdEdit" type="text" class="popup-input" hidden="hidden"/>
					</div>
					<div class="popup-item">
						<label class="popup-txt">上传者：</label>
						<input id="uploadEdit" type="text" class="popup-input" placeholder="请输入上传者" style="width: 27%;"/>
						<label class="popup-txt" style="letter-spacing: 6px;">权重：</label>
						<input id="weightEdit" type="number" class="popup-input" placeholder="请输入权重" style="width: 27%;"/>
					</div>
					<div class="popup-item">
						<label class="popup-txt">上传文档：</label>
						<div class="policy-download">
							<label for="uploadFileEdit"><img src="img/add_icon.png" /></label></br>
							<input id="uploadFileEdit" type="file" accept="application/pdf" style="display: none;" onchange="fileChange(1,this);"/>
							<label>请上传pdf格式</label>
						</div>
						<div id="pdfPreviewEdit" class="policy-download-check" style="display: block;" onclick="previewPdf();">
							<img src="img/pdf_icon.png" />
							<label>预览</label>
						</div>
					</div>
					<div class="popup-item" style="text-align: center;">
						<center>
						<button type="button" class="saveBtn" onclick="policyEditSave();">保存</button>
						<button class="cancelBtn" onclick="editClose();" >取消</button>
						</center>
					</div>
				</form>
			</div>
		</div>
		<!--编辑end-->
		<!--文档预览start-->
		<div style="display: none;" id="fileDiv" class="add-container">
			<div class="black-cloth"></div>
			<div class="add-content" style="height: 37.5rem;width: 50.25rem;">
				<div class="popup-top">
					<label class="popup-add-title">文档预览</label>
					<img onclick="fileClose();" src="img/close_icon.png"/>
				</div>
				<a id="fileSrc" class="media" href=""></a>
			</div>
			<input id="fileSrcSave" style="display: none;" />
		</div>
		<!--文档预览end-->
		<div class="page-div">
			<label class="my-txt">起</label>
			<input id="search_date_start" type="date" class="my-date"/>
			<label class="my-txt">止</label>
			<input id="search_date_end" type="date" class="my-date"/>
			<input id="search_keyword" type="text" class="my-input" placeholder="搜索关键字"/>
			<button id="searchBtn" class="my-search-btn" onclick="search(9);">搜索</button>
			<button id="addBtn" class="my-import-btn" onclick="add();">发布</button>
		</div>
		<div class="data-div">
			<div id="data" class="data-div-table">
			<table>
				<tr class="table-top">
					<td width="25%">标题</td>
					<td width="15%">时间</td>
					<td width="15%">上传者</td>
					<td width="15%">权重</td>
					<td width="15%">下载正文</td>
					<td width="15%">操作</td>
				</tr>
				<tr class="item-white">
					<!-- <td>各项目部必须每月5号前提交工资单</td>
					<td>2019-07-17</td>
					<td>张三</td>
					<td>2</td>
					<td><img src="img/download_icon.png"/></td>
					<td>
						<img src="img/edit_icon.png" />
						<img style="margin-left: 10px;" src="img/delete_icon.png" />
					</td> -->
				</tr>
			</table>
			</div>
			<center><div id="page" class="page_div"></div></center>
		</div>
		<input id="pageNo" value="1" style="display: none;"/>
		<input id="total_page" value="12"  style="display: none;"/>
		<input id="total_rows" value="108"  style="display: none;"/>
		<input id="keyword" value="查询"  style="display: none;"/>
	</body>
</html>
